﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("WebApplicationJQueryUI.Demo03.Behaviour");

WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour = function(element) {
    WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour.initializeBase(this, [element]);
}

WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour.prototype = {
    initialize: function () {
        WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour.callBaseMethod(this, 'initialize');

        $(this.get_element()).datepicker();
    },
    dispose: function () {
        //Add custom dispose actions here
        WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour.callBaseMethod(this, 'dispose');
    }
}
WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour.registerClass('WebApplicationJQueryUI.Demo03.Behaviour.JQueryCalendarExtenderBehaviour', Sys.UI.Behavior);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
